<%--
  Created by IntelliJ IDEA.
  User: 逆阳
  Date: 2021/7/28
  Time: 9:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>支出查询</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="static/css/animate.min.css" rel="stylesheet">
    <link href="static/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
    <link href="static/css/plugins/toastr/toastr.min.css" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="row">
    <div class="col-lg-12">
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="row m-t-lg">
                            <div class="col-lg-12">
                                <div class="content-wrapper" style="min-height: 534px;">
                                    <!-- 内容头部 -->
                                    <section class="content-header">
                                        <h1>
                                            支出查询
                                        </h1>
                                        <ol class="breadcrumb">
                                            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                                            <li><a href="#">项目经费</a></li>
                                            <li class="active">支出查询</li>
                                        </ol>
                                    </section>
                                    <!-- 内容头部 /-->
                                    <!-- 正文区域 -->
                                    <form>
                                        <section class="content">
                                            <div class="box box-primary">
                                                <div class="box-header with-border">
                                                    <h3 class="box-title">列表</h3>
                                                </div>
                                                <div class="box-body">
                                                    <!-- 数据表格 -->
                                                    <div class="table-box">
                                                        <!--数据列表-->
                                                        <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
                                                            <thead id="aaa">
                                                            <tr>
                                                                <th style="display: none">id</th>
                                                                <th>支出科目</th>
                                                                <th>数量</th>
                                                                <th>单价</th>
                                                                <th>购买形式</th>
                                                                <th>金额</th>
                                                                <th>日期</th>
                                                                <th>经办人</th>
                                                                <th>录入人</th>
                                                                <th>备注</th>
                                                                <th>状态</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody id="contractList"></tbody>
                                                            <div class="pull-left">
                                                                <div class="form-group form-inline">总共3页，共12条数据。每页4条
                                                                    <select class="form-control" id="changePageSize" onchange="changePageSize()">
                                                                        <option selected="selected">请选择</option>
                                                                        <option>1</option>
                                                                        <option>2</option>
                                                                        <option>3</option>
                                                                        <option>4</option>
                                                                        <option>5</option>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </section>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="static/js/jquery.min.js?v=2.1.4"></script>
<script src="static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="static/js/plugins/toastr/toastr.min.js"></script>
<script type="text/javascript">
    $(function(){var i=-1;var toastCount=0;var $toastlast;var getMessage=function(){var msg="Hi, welcome to Inspinia. This is example of Toastr notification box.";return msg};$("#showsimple").click(function(){toastr.success("Without any options","Simple notification!")});$("#showtoast").click(function(){var shortCutFunction=$("#toastTypeGroup input:radio:checked").val();var msg=$("#message").val();var title=$("#title").val()||"";var $showDuration=$("#showDuration");var $hideDuration=$("#hideDuration");var $timeOut=$("#timeOut");var $extendedTimeOut=$("#extendedTimeOut");var $showEasing=$("#showEasing");var $hideEasing=$("#hideEasing");var $showMethod=$("#showMethod");var $hideMethod=$("#hideMethod");var toastIndex=toastCount++;toastr.options={closeButton:$("#closeButton").prop("checked"),debug:$("#debugInfo").prop("checked"),progressBar:$("#progressBar").prop("checked"),positionClass:$("#positionGroup input:radio:checked").val()||"toast-top-right",onclick:null};if($("#addBehaviorOnToastClick").prop("checked")){toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}}if($showDuration.val().length){toastr.options.showDuration=$showDuration.val()}if($hideDuration.val().length){toastr.options.hideDuration=$hideDuration.val()}if($timeOut.val().length){toastr.options.timeOut=$timeOut.val()}if($extendedTimeOut.val().length){toastr.options.extendedTimeOut=$extendedTimeOut.val()}if($showEasing.val().length){toastr.options.showEasing=$showEasing.val()}if($hideEasing.val().length){toastr.options.hideEasing=$hideEasing.val()}if($showMethod.val().length){toastr.options.showMethod=$showMethod.val()}if($hideMethod.val().length){toastr.options.hideMethod=$hideMethod.val()}if(!msg){msg=getMessage()}$("#toastrOptions").text("Command: toastr["+shortCutFunction+']("'+msg+(title?'", "'+title:"")+'")\n\ntoastr.options = '+JSON.stringify(toastr.options,null,2));var $toast=toastr[shortCutFunction](msg,title);$toastlast=$toast;if($toast.find("#okBtn").length){$toast.delegate("#okBtn","click",function(){alert("you clicked me. i was toast #"+toastIndex+". goodbye!");$toast.remove()})}if($toast.find("#surpriseBtn").length){$toast.delegate("#surpriseBtn","click",function(){alert("Surprise! you clicked me. i was toast #"+toastIndex+". You could perform an action here.")})}});function getLastToast(){return $toastlast}$("#clearlasttoast").click(function(){toastr.clear(getLastToast())});$("#cleartoasts").click(function(){toastr.clear()})});
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<script>
    $(function(){
        $.ajax({
            url:"findTong",
            type: "post",
            dataType:"json",
            success:function(data){
                for (let i = 0; i < data.length; i++) {
                    $("#contractList").append("<tr>" +
                        "<td style='display: none' id='prodel'>"+data[i].pid+"</td>"+
                        "<td>"+data[i].fpayments+"</td> " +
                        "<td>"+data[i].fnumber+"</td> " +
                        "<td>"+data[i].fprice+"</td>" +
                        " <td>"+data[i].fform+"</td> " +
                        "<td>"+data[i].fmoney+"</td> " +
                        "<td>"+data[i].fdate+"</td> " +
                        "<td>"+data[i].fagent+"</td> " +
                        "<td>"+data[i].fenter+"</td> " +
                        "<td>"+data[i].fremarks+"</td> " +
                        "<td>"+data[i].fstate+"</td> " +
                        "</tr>")
                }
            },
            error:function (){
                alert("xxx")
            }
        })
    });
</script>
</body>
</html>
